package com.ncloud.common.enmus;

/**
 * Created by shiqiang on 2017/4/3.
 */
public enum ResultEnum {
    UNKONE_ERROR("-1","未知错误"),
    /*成功*/
    SUCCESS("0000","成功"),
    //参数不合法
    PARAM_ERROR("2001","参数不合法"),
    DATABASE_ERROR("7001","数据库异常"),
    CONSTRUCT_FINISHDAEAFTER_ERROR("50001","施工完成日期不能大于当前日期"),
    /*定义订单系列错误编码*/
    ORDER_INFO_ERROR("1000","订单节点信息不存在"),
    /*.... 其他错误定义*/
    DEPOSIT_NO_MORE_VALUE("8001","保证金账户余额不足")
    ;
    /*枚举值*/

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
